import request from '@/utils/request'

// 查询转售订单列表
export function listResellcustomerorder(query) {
  return request({
    url: '/resell/resellcustomerorder/list',
    method: 'get',
    params: query
  })
}

// 查询转售订单详细
export function getResellcustomerorder(orderId) {
  return request({
    url: '/resell/resellcustomerorder/' + orderId,
    method: 'get'
  })
}

// 新增转售订单
export function addResellcustomerorder(data) {
  return request({
    url: '/resell/resellcustomerorder',
    method: 'post',
    data: data
  })
}

// 修改转售订单
export function updateResellcustomerorder(data) {
  return request({
    url: '/resell/resellcustomerorder',
    method: 'put',
    data: data
  })
}

// 删除转售订单
export function delResellcustomerorder(orderId) {
  return request({
    url: '/resell/resellcustomerorder/' + orderId,
    method: 'delete'
  })
}
